﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.TeacherInfo>" %>

<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    用户编辑
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("AdminTopUc", "用户编辑"); %>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
    <% using (Html.BeginForm("UserEdit", "Manage", new { Model.Id }, FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
    <fieldset>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Type) %>
        </div>
        <div class="editor-field">
            <%=Html.DropDownListFor(o=>o.Type,TeacherHelper.GetTeaType()) %>
            <%: Html.ValidationMessageFor(model => model.Type)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Account) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Account) %>
            <%: Html.ValidationMessageFor(model => model.Account) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Name) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Name) %>
            <%: Html.ValidationMessageFor(model => model.Name) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Pass) %>
        </div>
        <div class="editor-field">
            <%: Html.PasswordFor(model => model.Pass) %>
            <%: Html.ValidationMessageFor(model => model.Pass) %>
        </div>
        <p>
            <input type="submit" value="保存" /><%=Html.ActionButton("返回","UserList") %>
        </p>
    </fieldset>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
